package cn.com.vrv.domain.mysql;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import lombok.Data;

/**
 * t_sys_user表映射的实体类
 * 
 * @author 赵炎
 * @version [V1.00, 2018年2月26日]
 * @see [相关类/方法]
 * @since V1.00
 */
@Data
@Entity
@Table(name = "t_sys_user")
public class SysUser
{
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    
    private String account;
    
    private String password;
    
    private String address;
    
    private String userName;
    
    private Integer sex;
    
    private String phone;
    
    private Date birthDay;
    
    private String photo;
    
    private String organizationCode;
    
    private Long updateBy;
    
    private Date updateTime;
    
    private Long createBy;
    
    private Date createTime;
    
    private Date lastLoginTime;
    
    private String remark;
    
    // 这个目前不需为包装类 数据库中存在null值
    private Integer locked;
    
    private Integer enable;
    
    private Integer alertcount;
    
    private Integer role;
    
    private Integer status;
    
    private String contacts;
    
    private String contactsPhone;
    
    private String openId;
    
    /**
     * use 与数据库关键字冲突
     */
    @Column(name="`use`")
    private Integer use;
}
